package com.unionpay.acp.init;

import com.unionpay.acp.sdk.SDKConfig;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import sun.security.util.Resources;

@Component
public class InitUnionPayProject implements ApplicationRunner {

    //SpringBoot 启动的时候就会执行该方法
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("************************************文件开始加载*****************");
        SDKConfig.getConfig().loadPropertiesFromSrc();
    }
}
